<!doctype html>  
<html>  
<head>  
<meta charset="utf-8" />  
<title>下载应用</title> 
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />

  
</head>  
<body> 

 
 
 <script type="text/javascript">
 /*<![CDATA[*/
            
   function onBridgeReady() {
	WeixinJSBridge.call('showOptionMenu');
}
if (typeof WeixinJSBridge == "undefined") {
	if (document.addEventListener) {
		document.addEventListener('WeixinJSBridgeReady', onBridgeReady,
				false);
	} else if (document.attachEvent) {
		document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
		document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	}
} else {
	onBridgeReady();
}
            
            
 function doLocation(url) {
		var a = document.createElement("a");
     if (!a.click) {
         window.location = url;
         return;
     }
     a.setAttribute("href", url);
     a.style.display = "none";
     document.body.appendChild(a);
     a.click();
 }
		var agent_str = navigator.userAgent;
		if(agent_str.indexOf("iPhone") > -1 ){
		  document.write('<meta content="width=device-width,initial-scale=0.5,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">');
		}else if(agent_str.indexOf("iPad") >-1){
		  document.write('<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">');
		}else if(agent_str.indexOf("iPod") >-1){
		  document.write('<meta content="width=device-width,initial-scale=0.5,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">');
		}else if(agent_str.indexOf("android") >-1){
		  document.write('<meta content="width=device-width,initial-scale=0.5,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">');
		} 
    doLocation('https://itunes.apple.com/WebObjects/MZStore.woa/wa/search?mt=8&submit=edit');
    /*]]>*/
</script>
</body> 
</html>  
